← Index
NYTProf Performance Profile   
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:09 2016

Filename(eval 58)[/usr/share/perl5/Sub/Quote.pm:5]
StatementsExecuted 21 statements in 313µs
Eval Invoked At/usr/share/perl5/Sub/Quote.pm line 5
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22225µs26.9msSearch::Elasticsearch::Cxn::Factory::::newSearch::Elasticsearch::Cxn::Factory::new
11112µs23µsSub::Quote::::BEGIN@3.15 Sub::Quote::BEGIN@3.15
1117µs7µsMethod::Generate::Constructor::::BEGIN@6.16 Method::Generate::Constructor::BEGIN@6.16
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1{
222µs my $_QUOTED = ${$_[1]->{"\$_QUOTED"}};
3260µs233µs
# spent 23µs (12+11) within Sub::Quote::BEGIN@3.15 which was called: # once (12µs+11µs) by Sub::Quote::_clean_eval at line 3
no warnings 'closure';
# spent 23µs making 1 call to Sub::Quote::BEGIN@3.15 # spent 11µs making 1 call to warnings::unimport
4
# spent 26.9ms (25µs+26.8) within Search::Elasticsearch::Cxn::Factory::new which was called 2 times, avg 13.4ms/call: # once (19µs+26.1ms) by Search::Elasticsearch::new at line 53 of Sub/Defer.pm # once (6µs+748µs) by Search::Elasticsearch::new at line 40 of /opt/flows/lib/lib/perl5/Search/Elasticsearch.pm
sub Search::Elasticsearch::Cxn::Factory::new {
5package Method::Generate::Constructor;
6
# spent 7µs within Method::Generate::Constructor::BEGIN@6.16 which was called: # once (7µs+0s) by Sub::Quote::_clean_eval at line 11
BEGIN {
71900ns $^H = "2018";
81400ns ${^WARNING_BITS} = "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\003";
916µs %^H = (
10 );
111220µs17µs}
# spent 7µs making 1 call to Method::Generate::Constructor::BEGIN@6.16
121500ns my $class = shift;
131200ns $class = ref($class) if ref($class);
141200ns if ($class ne "Search::Elasticsearch::Cxn::Factory") {
15 if ($Moo::MAKERS{$class}) {
16 Moo->_constructor_maker_for($class,"Search::Elasticsearch::Cxn::Factory");
17 return $class->new(@_);
18 } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) {
19 return $meta->new_object($class->BUILDARGS(@_));
20 }
21 }
2212µs126.1ms my $args = $class->BUILDARGS(@_);
# spent 26.1ms making 1 call to Search::Elasticsearch::Cxn::Factory::BUILDARGS
231900ns die "BUILDARGS did not return a hashref" unless ref($args) eq 'HASH';
2412µs if (my @missing = grep !exists $args->{$_}, qw(_factory cxn_class default_host)) {
25 die "Missing required arguments: ".join(', ', sort @missing);
26 }
2711µs my $new = bless({}, $class);;
2814µs if (exists $args->{"_factory"}) {
29 $new->{"_factory"} = $args->{"_factory"};
30 }
311800ns if (exists $args->{"cxn_class"}) {
32 $new->{"cxn_class"} = $args->{"cxn_class"};
33 }
341700ns if (exists $args->{"default_host"}) {
35 $new->{"default_host"} = $args->{"default_host"};
36 }
371700ns $new->{"max_content_length"} = (
38 exists $args->{"max_content_length"}
39 ? $args->{"max_content_length"}
40 : "104857600"
41 );
4215µs return $new;
43 }
4411µs $_QUOTED->[3] = \&Search::Elasticsearch::Cxn::Factory::new
45}
4615µs1;
47
48;